package com.design.适配器模式;

public class TestMain {

	public static void main(String[] args) {
		
		System.out.println("-----适配器1----------");
		Vga vga = new Typec2Vga();
		vga.vgaInterface();
		System.out.println("显示屏对接适配器，手机成功投影到显示屏!");
		
		System.out.println("-----适配器2----------");
		Typec2VgaM typec2Vga = new Typec2VgaM(new Phone());
		typec2Vga.vgaInterface();
		System.out.println("显示屏对接适配器，手机成功投影到显示屏!");
		
		System.out.println("-----适配器3----------");
		VgaAdapter vaAdapter = new VgaAdapter();
		vaAdapter.typec();
		vaAdapter.typec2vga();
		System.out.println("显示屏对接适配器，手机成功投影到显示屏!");
		
	}
	
}
